package com.service;


import com.github.pagehelper.PageInfo;
import com.util.AjaxResult;
import com.vo.CommentVo;
import org.springframework.web.bind.annotation.RequestBody;

public interface CommentService {
    //根据resourceId获取评论集合
    AjaxResult findCommentByResourceId(Integer resourceId, Integer pageNo);

    //根据评论id寻找点赞数量
    Integer findPraiseCountByCommentId(Integer commentId);
    //插入评论
    AjaxResult addComment(String context,Integer resourceId,Integer userId);
    //根据id修改评论状态status
    int modifyStatusByCommentId(Integer commentId, Integer status);



    PageInfo<CommentVo> findCommentByStatusAndCondition(CommentVo commentVo);


}
